package com.lysj.bhp.announcement.repository;


import com.lysj.bhp.announcement.domain.Announcement;
import org.springframework.data.jpa.repository.JpaRepository;
import org.springframework.data.jpa.repository.JpaSpecificationExecutor;

import java.util.List;

public interface AnnouncementRepository extends JpaRepository<Announcement, Long> ,JpaSpecificationExecutor{

    List<Announcement> findByIsExistOrderByDateDesc(int isExist);

}
